<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="new :: common_head('电价')">
</head>
<style>
   .table td{
        margin: 0;
        padding: 0;
    }
</style>
<body>
<div th:replace="~{new::header}"></div>
<!-- start: Header -->

<div class="container-fluid-full">
    <div class="row-fluid">

        <!-- start: Main Menu -->
        <div id="sidebar-left" class="span2" th:replace="new::sidebar_left"></div>
        <!-- end: Main Menu -->

        <noscript>
            <div class="alert alert-block span10">
                <h4 class="alert-heading">Warning!</h4>
                <p>You need to have <a href="" target="_blank">JavaScript</a> enabled to use this site.</p>
            </div>
        </noscript>

        <!-- start: Content -->
        <div id="content" class="span10">


            <ul class="breadcrumb">
                <li>
                    <i class="icon-home"></i>
                    <a th:href="@{/new.html}">主页</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li><a href="#">[[${deviceName}]]电价修改</a></li>
            </ul>

            <div class="row-fluid sortable">
                <div class="box span12">
                    <div class="box-header" data-original-title>
                        <h2><i class="halflings-icon white edit"></i><span class="break"></span>[[${deviceName}]]</h2>
                    </div>
                    <div class="box-content" style="position:relative">
                        <form class="form-horizontal" th:action="@{/property/updateElePrice}" method="post">
                            <fieldset>
                                <div id="notice" style="position:absolute;top:50px;left: 600px;font-size:20px">
                                    提示:<br><br>
                                    峰段（电价最高的时间段)<br><br>
                                    谷段（电价最低的时间段）<br><br>
                                    平段（剩余电价的时间段)<br><br>
                                </div>
                                <div class="control-group" th:each="price,priceStat:${priceList}">
                                    <label class="control-label">[[${priceStat.index}+':00']]-[[${priceStat.index+1}+':00']]</label>
                                    <div class="controls">
                                        <input class="input-xlarge focused" type="text" placeholder=""
                                               name="priceList" th:value="${price}">
                                    </div>
                                </div>
                                <div class="form-actions">
                                    <button  type="submit" class="btn btn-primary" >提交</button>
                                    <button  type="button" class="btn btn-primary" onclick="toElePrice()">返回</button>
                                </div>
                            </fieldset>
                        </form>

                    </div>
                </div><!--/span-->

            </div><!--/row-->
        </div>
    </div>
</div>

<div class="modal hide fade" id="myModal">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">×</button>
        <h3>Settings</h3>
    </div>
    <div class="modal-body">
        <p>Here settings can be configured...</p>
    </div>
    <div class="modal-footer">
        <a href="#" class="btn" data-dismiss="modal">Close</a>
        <a href="#" class="btn btn-primary">Save changes</a>
    </div>
</div>
<div class="common-modal modal fade" id="common-Modal1" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-content">
        <ul class="list-inline item-details">
            <li><a href="http://sc.chinaz.com">Admin templates</a></li>
            <li><a href="http://sc.chinaz.com">Bootstrap themes</a></li>
        </ul>
    </div>
</div>
<div class="clearfix"></div>


<div th:replace="new::common_js"></div>
<script>
    //返回上一页
    function toElePrice(){
        window.history.back(-1);
    }
</script>
</body>
</html>
